﻿using System;
using System.Runtime.Serialization;

using NXDO.Data;
using NXDO.Data.Attribute;

#region 代码说明
/*
 *******************************************************
 *       此段代码由 NXDO.Addin For VS2022 产生  
 *******************************************************
 * File Name:	Department.cs
 * Date Time:	2025/10/23 8:30:31
 * OS User:		hippo
 * Anthor:	ITKing(ZhuQi) javasuki@hotmail.com
 * Blog:		http://blog.csdn.net/javasuki
 * Generator:	NXDO.Addin2022 For VisualStudio2022
 * Version:		4.0.60.0
 * -----------------------------------------------------
 */
#endregion


namespace TDM.DbData.DataEntity
{

	/// <summary>
	/// 
	/// </summary>
	[Table]
	public class Department : Entity
	{
		[Title("TreeID")]
      [DataMember]
		[Field(FieldFlag.IsKey | FieldFlag.IsAutoValue)]
		public virtual long TreeID
		{
		    get;
		    set;
		}

		[Title("DeptCode")]
      [DataMember]
		[Field]
		public virtual string DeptCode
		{
		    get;
		    set;
		}

		[Title("DeptName")]
      [DataMember]
		[Field]
		public virtual string DeptName
		{
		    get;
		    set;
		}

		[Title("ParentID")]
      [DataMember]
		[Field]
		public virtual long? ParentID
		{
		    get;
		    set;
		}

		[Title("DeptType")]
      [DataMember]
		[Field]
		public virtual string DeptType
		{
		    get;
		    set;
		}

		[Title("CmpID")]
      [DataMember]
		[Field]
		public virtual int? CmpID
		{
		    get;
		    set;
		}

		[Title("ExtID1")]
      [DataMember]
		[Field]
		public virtual string ExtID1
		{
		    get;
		    set;
		}

		[Title("ExtID2")]
      [DataMember]
		[Field]
		public virtual string ExtID2
		{
		    get;
		    set;
		}

		[Title("IsEnable")]
      [DataMember]
		[Field]
		public virtual bool IsEnable
		{
		    get;
		    set;
		}

		[Title("ProfID")]
      [DataMember]
		[Field]
		public virtual int? ProfID
		{
		    get;
		    set;
		}

		[Title("CreateUID")]
      [DataMember]
		[Field]
		public virtual long CreateUID
		{
		    get;
		    set;
		}

		[Title("CreateTime")]
      [DataMember]
		[Field]
		public virtual DateTime CreateTime
		{
		    get;
		    set;
		}
	}
}
